package com.example.archive.service;

import com.example.archive.entity.User;
import com.example.archive.dto.LoginResponseDto;
import com.example.archive.util.Result;
import java.util.List;

public interface UserService {
    Result<Boolean> register(User user);
    Result<LoginResponseDto> login(String username, String password);
    Result<Boolean> logout(String token);
    Result<List<User>> listUsers(String search);
    Result<Boolean> addUser(User user);
    Result<Boolean> updateUser(User user);
    Result<Boolean> deleteUser(Integer userId);
    Result<User> getUserById(Integer userId);
} 